import axios from "../axios.js";
import { INSURES } from "../consts.js";
export default {
    //获取所有保险产品
    async getInsures(params) {
        return await axios({
            url: INSURES + '/getInsures',
            method: 'get',
            params
        })
    },
    //根据ID保险产品
    async getInsureById(params) {
        return await axios({
            url: INSURES + '/getInsureById',
            method: 'get',
            params
        })
    },
    //新增保险产品
    async addInsure(data) {
        return await axios({
            url: INSURES + '/addInsure',
            method: 'post',
            data
        })
    },
    //获取所有保险产品
    async updateInsureById(data) {
        return await axios({
            url: INSURES + '/updateInsureById',
            method: 'post',
            data
        })
    },
    //获取所有保险产品
    async delInsureById(data) {
        return await axios({
            url: INSURES + '/delInsureById',
            method: 'post',
            data
        })
    }
}